package com.tarena.all;

import java.util.Random;

public class OperationDemo3 {

	/**
	 * @param 条件运算符
	 * 		   语法：
	 * 		 条件表达式？表达式1：表达式2
	 */
	public static void main(String[] args) {
		Random ran=new Random();
		int a=ran.nextInt(100);
		int b=ran.nextInt(100);
		int c=ran.nextInt(100);
	//  int a=6;
	//  int b=9;
	//  int c=10;
		int max=(a>b?a:b)>c?(a>b?a:b):c;
		//int max1=max>c?max:c;
		//System.out.println(max1);
		System.out.println("a="+a+"b="+b+"c="+c);
		System.out.println(max);
		

	}

}
